import { get, post, put, deletefn } from "@/utils/apiConfigs.js"

//商品管理数据列表
export const getCateData = (params) => get('categories', params)

//商品列表父级分类数据
export const getParentCateData = (params) => get('categories', params)

//添加分类
export const getAddCates = (params) => post('categories', params)

//编辑分类
export const getCateEndits = (id, params) => put('categories/' + id, params)

//删除分类列表
export const getRemoveCate = (id) => deletefn('categories/' + id)